package ming.model.type;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.lang.StringUtils;

 
@SuppressWarnings("serial")
@Entity
@Table(name = "T_BUSSINESS_PUBLICNOTICE", schema = "")
public class PublicNotice implements java.io.Serializable {

	private String path;// 此属性不存数据库，虚拟属性
	// Fields
	
	private String id;
	private String xkzh;//许可证号
	private String sqlx;//申请类型
	private String xkzfw;//许可证范围
	private String qymc;//企业名称
	private String fzr;//负责人
	private String jydz;//经营地址
	private String fzjg;//发证机关
	private String jdrq;//决定日期
	private String orgcode;//机构代码
	private String createtime;
	
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	public String getId() {
		if (!StringUtils.isBlank(this.id)) {
			return this.id;
		}
		return UUID.randomUUID().toString();
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
	@Column(name = "xkzh",  length = 32)
	public String getXkzh() {
		return xkzh;
	}

	public void setXkzh(String xkzh) {
		this.xkzh = xkzh;
	}

	@Column(name = "sqlx",  length = 32)
	public String getSqlx() {
		return sqlx;
	}

	public void setSqlx(String sqlx) {
		this.sqlx = sqlx;
	}

	@Column(name = "xkzfw",  length = 100)
	public String getXkzfw() {
		return xkzfw;
	}

	public void setXkzfw(String xkzfw) {
		this.xkzfw = xkzfw;
	}

	@Column(name = "qymc",  length = 200)
	public String getQymc() {
		return qymc;
	}

	public void setQymc(String qymc) {
		this.qymc = qymc;
	}

	@Column(name = "fzr",  length = 200)
	public String getFzr() {
		return fzr;
	}

	public void setFzr(String fzr) {
		this.fzr = fzr;
	}

	@Column(name = "jydz",  length = 200)
	public String getJydz() {
		return jydz;
	}

	public void setJydz(String jydz) {
		this.jydz = jydz;
	}

	@Column(name = "fzjg",  length = 200)
	public String getFzjg() {
		return fzjg;
	}

	public void setFzjg(String fzjg) {
		this.fzjg = fzjg;
	}

	@Column(name = "jdrq",  length = 32)
	public String getJdrq() {
		return jdrq;
	}

	public void setJdrq(String jdrq) {
		this.jdrq = jdrq;
	}

	@Column(name = "createtime",  length = 50)
	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	@Column(name = "orgcode",  length = 50)
	public String getOrgcode() {
		return orgcode;
	}

	public void setOrgcode(String orgcode) {
		this.orgcode = orgcode;
	}

	@Transient
	public String getPath() {
		return path;
	}
	

	public void setPath(String path) {
		this.path = path;
	}

	

}